package fr.afcepf.atod21.brigade.entity;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the brigadier database table.
 * 
 */
@Entity
@NamedQuery(name="Brigadier.findAll", query="SELECT b FROM Brigadier b")
public class Brigadier implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="id_brigadier")
	private int idBrigadier;

	private String nom;

	private String prenom;

	//bi-directional many-to-one association to Equipe
	@ManyToOne
	@JoinColumn(name="id_equipe")
	private Equipe equipe;

	public Brigadier() {
	}

	public int getIdBrigadier() {
		return this.idBrigadier;
	}

	public void setIdBrigadier(int idBrigadier) {
		this.idBrigadier = idBrigadier;
	}

	public String getNom() {
		return this.nom;
	}

	public void setNom(String nom) {
		this.nom = nom;
	}

	public String getPrenom() {
		return this.prenom;
	}

	public void setPrenom(String prenom) {
		this.prenom = prenom;
	}

	public Equipe getEquipe() {
		return this.equipe;
	}

	public void setEquipe(Equipe equipe) {
		this.equipe = equipe;
	}

}